<%@page import="org.entity.CollectionOrder"%>
<%@page import="java.util.List"%>
<%@page import="java.util.Iterator"%>
<%@page import="org.entity.OrderInfo"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>订单中心</title>
	<link rel="stylesheet" type="text/css" href="Assets/css/reset.css"/>
<link rel="stylesheet" type="text/css" href="Assets/css/common.css"/>
<link rel="stylesheet" type="text/css" href="Assets/css/thems.css"/>
<script type="text/javascript" src="Assets/js/jquery-1.8.3.min.js"></script>
<script type="text/javascript">
$(function(){
	$("#left_menu li ul").css("display","none");
	$("#left_menu li:first ul").css("display","block");
	$("#left_menu li .yiji").click(function(){
		$(this).parents("li").find(".erji").css("display","block");
		$(this).parent("li").siblings("li").find(".erji").css("display","none");
	});
})
</script>
<style type="text/css">
	#ta{
		margin: 5px;
	}
</style>
<script type="text/javascript" src="js/jquery-3.1.0.min.js" language="javascript"></script>
<script type="text/javascript">
	$(document).ready(function(){
		$("tr:odd").css("background","#CFCFCF");
	});
</script>
<style type="text/css">
	table{
		border-top:  1px solid #CFCFCF;
		border-left:  1px solid #CFCFCF;
	}
	th,td{
		border-bottom: 1px solid #CFCFCF;
		border-right:  1px solid #CFCFCF; 
	}
	th,td{
		padding-left: 10px;
		padding-right: 10px;
	}
	th{
		color:#BD0707;
	}
</style>
</head>

<body>
<!--头部-->
<div class="head_bg">
	<div class="head clearfix">
    	<div class="logo"><a href="index.jsp"><img src="Assets/images/logo.png" alt=""/></a></div>
        <div class="menu">
        	 <c:if test="${sessionScope.loginsuccess!=true}">
		        	<%
		        		response.sendRedirect("login.jsp");
		        	%>
		     </c:if>
		     <c:if test="${sessionScope.loginsuccess==true}">
		     		<div class="head_top">
		            	用户&nbsp;${sessionScope.username}&nbsp;已登录
		            	<a href="clearlogin" class="submit">退出</a>
		            </div>
		     </c:if>
            <ul class="clearfix">
            	<li class="now"><a href="index.jsp">首页</a></li>
                <li><a href="personal.jsp">我的资料</a></li>
				<li><a href="OrderQuery">我的物流</a></li>
				<li><a href="book.jsp">网上下单</a></li>
                <li><a href="news_d.jsp">帮助与支持</a></li>
                <li><a href="about.jsp">萤火物流</a></li>
            </ul>
        </div>
    </div>
</div>
<!--头部-->
<!--中间部分-->
<div class="main">
	<!--订单中心-->
    <div class="order clearfix">
    	<div class="order_l">
        	<ul id="left_menu" class="left_menu">
            	<li>
                	<a class="yiji"><span>个人中心</span><em>&nbsp;</em></a>
                    <ul class="erji">
                    	<li>
                        	<i>&nbsp;</i>
                            <strong><a href="personal.jsp">个人资料</a></strong>
                        </li>
                    </ul>
                </li>
                <li>
                	<a class="yiji"><span>订单中心</span><em>&nbsp;</em></a>
                    <ul class="erji">
                    	<li>
                        	<i>&nbsp;</i>
                            <strong onclik=""><a href="OrderQuery">我的订单</a></strong>
                        </li>
                    </ul>
                </li>
            </ul>
        </div>
        <div class="order_r">
        	<div class="order_h">
            	<span>我的所有订单</span>
            </div>
				 <table border="0" width=100% cellpadding=0% id="ta">
                  <tr>
                        <th>订单编号</th>
                         <th>货物重量（kg）</th>
                         <th>邮费（元）</th>
                         <th>发货城市</th>
                         <th>收货城市</th>
                  </tr>
                   <% 
                   CollectionOrder olist = (CollectionOrder) session.getAttribute("co");
                    List<OrderInfo> list= olist.getList();
                   		for(OrderInfo order:list){
                       %>
                       <tr>
                              <td><% out.print(order.getOrderid()); %></td>
                              <td><% out.print(order.getGoodswt()); %></td>
                              <td><% out.print(order.getMailfee()); %></td>
                              <td><% out.print(order.getSENDCITY()); %></td>
                              <td><% out.print(order.getREACHCITY());%></td><br/>
                       </tr>
                       <%}%>
					

                 </table>
				<br/>
				<br/>
				<br/>
				<br/>

            <div class="order_news">
            </div>
            
        </div>
    </div>
    <!--订单中心-->
    <div class="space_hx">&nbsp;</div>
</div>
<!--中间部分-->
<div class="space_hx">&nbsp;</div>
<!--底部-->
<div class="foot_bg">
	<div class="foot">
    	<div class="foot_t">

        </div>
        <div class="copy">
        <a href="guanliyuan.jsp">管理员</a>
        	Copyright&copy;&nbsp;2012-2015&nbsp; 找物流有限责任公司.&nbsp;&nbsp;All&nbsp;&nbsp;rights&nbsp;&nbsp;reserved. &nbsp;&nbsp;粤ICP备10005645
        </div>
    </div>	
</div>
<!--底部-->
</body>
</html>
